package com.xhx.db.service;

import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhx.db.entity.AppVersion;
import com.xhx.vo.PageInfoParam;
import com.xhx.vo.PageInfoResult;

/**
 * APP版本-Service
 * 
 * @author xhx
 */
public interface AppVersionService extends IService<AppVersion> {

	/**
	 * 获取最新app版本
	 * 
	 * @param systemType
	 * @return
	 */
	AppVersion getNewVersion(byte systemType);

	/**
	 * 通过版本号获
	 * 
	 * @param versionNo
	 * @return
	 */
	AppVersion getByNo(Integer versionNo);

	/**
	 * 通过名称获取
	 * 
	 * @param versionNo
	 * @return
	 */
	AppVersion getByName(String versionNo);

	/**
	 * 分页查询
	 * 
	 * @param param
	 * @return
	 */
	PageInfoResult<AppVersion> getPage(PageInfoParam<Map<String, Object>> param);

}
